import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import refresh from '@dfeidao/atom-web/url/refresh';
import get from '@dfeidao/atom-web/local/get';

export default async function a003(fd: IFeidaoAiBrowserComponent) {
	// 左侧删除
	const nos = get(fd, 'nos') as string[];
	const r = await nodejs<{ code: 0 | 1; result: string }>('risk-point/zj-000011/s001', {
		filter: {
			risk_po_type_no: nos,
		}
	});
	if (r.code === 1) {
		alert('删除成功');
		refresh();
	} else {
		alert('删除失败');
	}

}
